import Snippet from '~/components/snippet'
import Caption from '~/components/text/caption'
import { InlineCode } from '~/components/text/code'
import Note from '~/components/text/note'

export const meta = {
  editUrl: 'pages/docs/now-cli/now-cli-mdx/commands/teams.mdx',
  lastEdited: '2019-10-15T22:03:42.000Z'
}

## Teams

The `now teams` command is used to manage [teams](/docs/v2/platform/users-and-teams/) under an account, providing functionality to list, add, and invite new members to teams.

<Note type="warning">
  This command is for <b>advanced use only</b>. You can manage teams with
  further options and greater control from the ZEIT Dashboard.
</Note>

### Basic Usage

<Snippet dark text="now teams list" />
<Caption>Using the <InlineCode>now teams</InlineCode> command to list all teams under an account.</Caption>

### Extended Usage

<Snippet dark text="now teams add" />
<Caption>Using the <InlineCode>now teams</InlineCode> command to create a new team.</Caption>

<Snippet dark text="now teams invite [email]" />
<Caption>Using the <InlineCode>now teams</InlineCode> command to invite a new member to a team.</Caption>

### Global Options

The following [global options](#options) can be passed when using the `now teams` command:

- `--debug`
- `--global-config`
- `--help`
- `--local-config`

For more information on global options and their usage, refer to the [options section](#options).
